/**
 * 作者：陈文斌 on 2019/1/17.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:crm/constant/constant.dart';

class ImportClientSearchBarSection extends StatelessWidget {
  final VoidCallback onTap;

  ImportClientSearchBarSection({
    Key key,
    this.onTap,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 45,
      alignment: Alignment.center,
      child: GestureDetector(
        onTap: onTap,
        child: Container(
          width: MediaQuery.of(context).size.width - 30,
          height: 30,
          color: Colors.white,
          alignment: Alignment.center,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Icon(
                Icons.search,
                size: 15,
                color: AppColors.PlaceholderTextColor,
              ),
              Text(
                '搜索',
                style: TextStyle(
                  fontSize: 13,
                  color: AppColors.PlaceholderTextColor,
                ),
              )
            ],
          ),
        ),
      ),
    );
  }
}
